import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 病历记录
 */
@Entity('medical_record')
export class MedicalRecordEntity extends BaseEntity {
  @Index()
  @Column({ comment: '学员ID' })
  studentId: number;

  @Index()
  @Column({ comment: '模板ID' })
  templateId: number;

  @Column({ comment: '就诊时间', type: 'datetime' })
  visitTime: Date;
}
